package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Exercise;

import java.util.Date;
import java.util.List;

public interface ExerciseDao {
    Long findCountByExerciseName(String name);

    void editByExerciseName(Exercise exercise);

    void add(Exercise exercise);

    Page<Exercise> selectByCondition(String queryString);

    List<Exercise> findAll();

//    Exercise findExerciseByOrderDate(Date date);

    int findInterventionIdByOrderDate(Date date);

    List<String> findExerciseByInterventionId(int id);

    void addExercise(Exercise exercise);

    Exercise findById(Integer sid);

    void edit(Exercise exercise);

    void deleteById(Integer sid);
}
